package com.yatube.yygh.admin.easyexcel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

/**
 * @author Created with IDEA
 * @description -- excel读操作
 * @date 2024-04-23 13:57
 */
public class ExcelListener extends AnalysisEventListener<UserData> {

    // 一行一行读取excel内容(标题除外，从第二行读起)
    @Override
    public void invoke(UserData userData, AnalysisContext analysisContext) {
        System.out.println(userData);
    }

    // 读取数据之后执行
    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
